package com.demo.subscriber;

import cn.hutool.json.JSONUtil;
import com.itdl.mq.base.AbstractFanoutListener;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.data.redis.connection.Message;
import org.springframework.stereotype.Component;

/**
 * 广播消息监听器
 */
@ConditionalOnProperty(value = "redis.enable", havingValue = "true")
@Slf4j
@Component
@SuppressWarnings("all")
public class FanoutListener1 extends AbstractFanoutListener {


    @Override
    public void doHandle(Message message) {
        log.info("正在处理业务...：{}", message.toString());
    }
}
